package com.yj.springbootmiaosha.mapper;

import com.yj.springbootmiaosha.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface ProductDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    int updateCount(@Param("purchaseProductNum") int purchaseProductNum, @Param("name") String name,@Param("date") Date date,@Param("id") int purchaseProductId);
}